﻿using System;

namespace TSites.Administrator.Models
{
	public class PagingInfo
	{
		public int PageIndex { get; set; }
		public int PageSize { get; set; }
		public int TotalItems { get; set; }
		public int TotalPages
		{ 
			get 
			{
				return (int)Math.Ceiling((double)(TotalItems / PageSize)); 
			}
		}
		public string Link { get; set; }
	}
}